package com.xhy.major.mapper;

import com.xhy.major.pojo.Major;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MajorMapper {

    List<Major> selectMajor();

    int addMajor(Major major);

    int updateMajor(Major major);

    int deleteMajor(@Param("id") int id);
}
